<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="vn" lang="vn">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="vn" />
	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main_admin.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

    <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/common.js" type="text/javascript" charset="utf-8"></script>

<!--    hvl lib-->
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/hvl-lib.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/hvl-lib.css" type="text/css" media="all">

    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.noty.packaged.min.js"></script>
    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/buttons.css" type="text/css" media="all">
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/theme.notify.js"></script>

    <script src="<?php echo Yii::app()->baseUrl . '/editor2/ckeditor/ckeditor.js'; ?>"></script>
    <script type="text/javascript">
    base_url = '<?php echo Yii::app()->request->baseUrl; ?>';
    </script>
    <?php
    Yii::app()->clientScript->registerMetaTag($this->getMetaDescription(), 'description');
    Yii::app()->clientScript->registerMetaTag($this->getMetaKeywords(), 'keywords');
    ?>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="notify" style="display: none;position: fixed;padding:10px; top: 0; right: 0; border: 1px solid #000000; border-radius: 5px;background-color: #ffffff">
    notify
</div>

<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php
            echo Config::model()->GetValue('name');
        ?></div>
	</div><!-- header -->

	<div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Trang chủ', 'url'=>array('/site/index'),'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Đăng nhập', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Đăng xuất ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		    'homeLink'=>CHtml::link('Trang chủ', Yii::app()->homeUrl),
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
    <?php if(!Yii::app()->user->isGuest){ ?>
    <div id="submenu">
        <div class="title">Chức năng</div>
        <?php
            $this->widget('zii.widgets.CMenu',array(
                'items'=>array(
                    array('label'=>"Bài viết", 'url'=>array('baiviet/admin')),
                    array('label'=>"Nhóm Bài Viết", 'url'=>array('nhombaiviet/admin')),
                    array('label'=>"Menu", 'url'=>array('menu/admin')),
                    array('label'=>"Nhân Viên", 'url'=>array('user/admin')),
                    array('label'=>"Bác Sĩ", 'url'=>array('bacsi/admin')),
                    array('label'=>"Slide", 'url'=>array('slide/admin')),
                    array('label'=>"Liên Hệ", 'url'=>array('contact/admin')),
                    array('label'=>"Cấu Hình", 'url'=>array('config/admin'))
                )
            ))
        ?>
    </div>
    <?php }?>
	<?php echo $content; ?>

	<div class="clear"></div>

	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by <?php echo Config::model()->GetValue('www'); ?>.
		All Rights Reserved.<br/>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>